<?php
/**
 * The following variables are available in this template:
 * - $this: the CrudCode object
 */
?>
<?php
echo "<?php\n";
$nameColumn=$this->guessNameColumn($this->tableSchema->columns);
$label=$this->pluralize($this->class2name($this->modelClass));
echo "\$this->breadcrumbs=array(
	Yii::t('back', '$label')=>array('index'),
	\$model->{$nameColumn}=>array('view','id'=>\$model->{$this->tableSchema->primaryKey}),
	Yii::t('back', 'Update'),
);\n";
?>

$this->menu=array(
	array('label'=>Yii::t('back', 'Manage <?php echo $this->pluralize($this->class2name($this->modelClass)); ?>'), 'url'=>array('index')),
	array('label'=>Yii::t('back', 'Create <?php echo $this->modelClass; ?>'), 'url'=>array('create')),
	array('label'=>Yii::t('back', 'View <?php echo $this->modelClass; ?>'), 'url'=>array('view', 'id'=>$model-><?php echo $this->tableSchema->primaryKey; ?>)),
);
?>

<?php
echo "<h1><?php echo Yii::t('back', 'Update " . $this->modelClass . "') . ' \"' . \$model->{$nameColumn} . '\"'; ?></h1>\n";
?>

<?php echo "<?php echo \$this->renderPartial('_form', array('model'=>\$model)); ?>"; ?>